@import './mixins.scss';

// 布局相关
.page-container {
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
}

.page-header {
  margin-bottom: 16px;
  @include flex-between;
}

.page-content {
  height: calc(100% - 56px);
  background-color: var(--el-bg-color);
  border-radius: 4px;
  padding: 16px;
  box-sizing: border-box;
}

// 组件相关
.filter-header {
  margin-bottom: 16px;
  @include flex-between;

  .filter-left {
    @include flex-start;
    gap: 16px;
  }

  .filter-right {
    @include flex-end;
    gap: 16px;
  }
}

.table-container {
  height: calc(100% - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  .el-table {
    flex: 1;
    overflow: hidden;

    .el-table__body-wrapper {
      overflow-y: auto;
      @include scrollbar;
    }
  }

  .pagination {
    margin-top: 16px;
    @include flex-end;
  }
}

// 抽屉相关
.drawer-content {
  padding: 0 16px;
  box-sizing: border-box;
}

.drawer-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background-color: var(--el-bg-color);
  border-top: 1px solid var(--el-border-color-light);
  @include flex-end;
  gap: 12px;
} 